package data_management;

public enum UserStatus {

	ADMIN,
	CLERK,
	DROID,
	DROID_ADMIN;
	
	public static UserStatus parseStatus(String status) {
		
		if (status.toLowerCase().equals("admin")) {
			return ADMIN;
		}
		else if (status.toLowerCase().equals("clerk")) {
			return CLERK;
		}
		else if (status.toLowerCase().equals("droid")) {
			return DROID;
		}
		else if (status.toLowerCase().equals("droid_admin")) {
			return DROID_ADMIN;
		}
		
		return null;
	}
}
